use actix_web::{HttpRequest, Responder};
use askama::Template;

use super::TemplateResult;
use super::make_template_result;

#[derive(Template)]
#[template(path = "index.html")]
struct IndexTemplate<'a> {
    title: &'a str,
    name: &'a str,
}

pub(crate) fn index(_: ()) -> TemplateResult {
    make_template_result(IndexTemplate {
        title: "Index",
        name: "world",
    })
}